package com.spring.campus_express_delivery.dao;

import com.spring.campus_express_delivery.entity.Notices;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("NoticesDao")
@Mapper
public interface NoticesDao {
    //添加公告
    void insertNotices(Notices notices);
    //公告列表
    List<Notices> selectAll();
    //单个公告查询
    Notices selectId(String  noticeNum);
    //修改公告
    void updateId(Notices notices);
    //删除公告
    public void deleteId(String notcieNum);

    List<Notices> selectNotice(String keyWord);
}
